package com.qingfeng.client.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author zhangyuefei
 * @version 1.0
 * @date 2020/1/6 10:16 上午
 */
@ApiModel(value = "com.qingfeng.client.bean.GoodsCommon")
@Data
@TableName(value = "goods_common")
public class GoodsCommon {
    /**
     * 商品id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "商品id")
    private Long id;

    /**
     * 品牌id
     */
    @TableField(value = "grand_id")
    @ApiModelProperty(value = "品牌id")
    private Integer grandId;

    /**
     * 商品类型
     */
    @TableField(value = "type_id")
    @ApiModelProperty(value = "商品类型")
    private Integer typeId;

    /**
     * 店铺id
     */
    @TableField(value = "store_id")
    @ApiModelProperty(value = "店铺id")
    private Long storeId;

    /**
     * 活动表对应的id
     */
    @TableField(value = "activity_id")
    @ApiModelProperty(value = "活动表对应的id")
    private Integer activityId;

    @TableField(value = "recommend")
    @ApiModelProperty(value = "首页推荐，1表示推荐，0表示不推荐")
    private Integer recommend;

    /**
     * 商品名称
     */
    @TableField(value = "name")
    @ApiModelProperty(value = "商品名称")
    private String name;

    /**
     * 商品拼音首字母
     */
    @TableField(value = "name_py")
    @ApiModelProperty(value = "商品拼音首字母")
    private String namePy;


    /**
     * 分组id
     */
    @TableField(value = "group_id")
    @ApiModelProperty(value = "分组id")
    private Long groupId;

    /**
     * 销售状态，1:在销售,-1停止销售
     */
    @TableField(value = "sell_stat")
    @ApiModelProperty(value = "销售状态，1:在销售,-1停止销售")
    private Integer sellStat;

    /**
     * 运费
     */
    @TableField(value = "transform_fee")
    @ApiModelProperty(value = "运费")
    private Integer transformFee;

    @TableField(value = "description")
    @ApiModelProperty(value = "null")
    private String description;

    /**
     * 主图1
     */
    @TableField(value = "pic1")
    @ApiModelProperty(value = "主图1")
    private String pic1;

    /**
     * 主图2
     */
    @TableField(value = "pic2")
    @ApiModelProperty(value = "主图2")
    private String pic2;

    /**
     * 主图3
     */
    @TableField(value = "pic3")
    @ApiModelProperty(value = "主图3")
    private String pic3;

    /**
     * 主图4
     */
    @TableField(value = "pic4")
    @ApiModelProperty(value = "主图4")
    private String pic4;

    /**
     * 主图5
     */
    @TableField(value = "pic5")
    @ApiModelProperty(value = "主图5")
    private String pic5;

    /**
     * 主图6
     */
    @TableField(value = "pic6")
    @ApiModelProperty(value = "主图6")
    private String pic6;

    /**
     * 商品详情
     */
    @TableField(value = "detail")
    @ApiModelProperty(value = "商品详情")
    private String detail;

    @TableField(value = "sort")
    @ApiModelProperty(value = "排序")
    private Integer sort;

    @TableField(value = "create_id")
    @ApiModelProperty(value = "创建人id")
    private Integer createId;

    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Integer createTime;
    @TableField(value = "update_id")
    @ApiModelProperty(value = "修改人")
    private Integer updateId;
    @TableField(value = "update_time")
    @ApiModelProperty(value = "修改时间")
    private Integer updateTime;

    @TableField(exist = false)
    @ApiModelProperty(value = "商品最低价")
    private Integer price;

    @TableField(exist = false)
    @ApiModelProperty(value = "商品最高价")
    private Integer maxPrice;

    /**
     * 物流类型1邮寄2自提
     */
    @TableField(value = "logistics_type")
    @ApiModelProperty(value = "物流类型1邮寄2自提3邮寄/自提")
    private int logisticsType;


}
